package com.itheima.stock.exception;

import com.itheima.stock.enums.Code;

public class Exceptions {

    /**
     * 对抛出异常封装
     * @param code 枚举接口
     */
    public static void cast(Code code){
        throw new StockException(code);
    }

    /**
     * 构造器私有化
     */
    public Exceptions(){}
}
